package com.zrc.module_home.fragment

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.zrc.module_home.R
import com.zrc.module_home.databinding.FragmentHomeItmeBinding
import com.zrc.module_home.viewmodel.model.DemoResponse

/**
 * @Author: superman
 * @CreateTime: 6/27/21
 * @Describe:
 */
class DataBindingAdapter : BaseQuickAdapter<DemoResponse.OtherListBean, BaseDataBindingHolder<FragmentHomeItmeBinding>>(R.layout.fragment_home_itme) {
    override fun convert(holder: BaseDataBindingHolder<FragmentHomeItmeBinding>, item: DemoResponse.OtherListBean) {
        holder.dataBinding?.let {
            it.item=item
        }
    }
}